package com.assignwork.modules.workarrange;

import com.assignwork.service.IWorkArrangeFixedMachineService;
import com.assignwork.vo.WorkArrangeFixedMachineVO;
import com.assignwork.vo.WorkArrangeMachinesVO;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName WorkArrangeFixedMachineController
 * @Description 配工固机前端控制器
 * @Author dujianyu
 * @Date 2023/12/19 10:21
 */
@RestController
@AllArgsConstructor
@RequestMapping("workArrange/fixedMachine")
public class WorkArrangeFixedMachineController extends BladeController {

    private IWorkArrangeFixedMachineService service;

    @GetMapping("/infoByArrangeId")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "固机信息", notes = "传入arrangeId")
    public R<List<WorkArrangeFixedMachineVO>> infoByArrangeId(String arrangeId) {
        return R.data(service.infoByArrangeId(Func.toLong(arrangeId)));
    }

}
